//
//  MBStatisticsNetTool.m
//  MemberBusiness-ios
//
//  Created by cherry pu on 2018/4/25.
//  Copyright © 2018年 zhangXin. All rights reserved.
//

#import "MBStatisticsNetTool.h"

@implementation MBStatisticsNetTool

+(void)statisticsNetToolGetStoreProfileWithParam:(MBSalesParam*)param success:(MBResponseBlock)response failure:(MBRequestFailure)failure{
    [[MBHTTPTool sharedInstance]POST:ACCOUNT_POST_STORE_PROFILE params:param.yy_modelToJSONObject success:^(id jsonData) {
        response([[MBHTTPResponse alloc]initWithJsonData:jsonData]);
    } failure:^(NSError *error) {
        failure(error);
    }];
}

+(void)statisticsNetToolGetStoreReportWithParam:(MBSalesParam*)param success:(MBResponseBlock)response failure:(MBRequestFailure)failure
{
    [[MBHTTPTool sharedInstance]POST:ACCOUNT_POST_SELLER_REPORT params:param.yy_modelToJSONObject success:^(id jsonData) {
        response([[MBHTTPResponse alloc]initWithJsonData:jsonData]);
    } failure:^(NSError *error) {
        failure(error);
    }];
}


+(void)statisticsNetToolGetSalesListWithParam:(MBSalesParam*)param success:(MBResponseBlock)response failure:(MBRequestFailure)failure
{
    [[MBHTTPTool sharedInstance]POST:ACCOUNT_POST_SALES_RANK params:param.yy_modelToJSONObject success:^(id jsonData) {
        response([[MBHTTPResponse alloc]initWithJsonData:jsonData]);
    } failure:^(NSError *error) {
        failure(error);
    }];
}


@end
